
#include "gpio.h"
#include "cpu_io.h"
#include "uart.h"
#include "irq.h"

void key_init(void);
void key_isr(void);


void delay(const unsigned long count)
{
	volatile unsigned long i = count;

	while(i--);
}

int main()
{
	struct s5pv210_gpio *gpio = (struct s5pv210_gpio *)S5PV10_GPIO_BASE;
	write32(0x00001111, &gpio->j2.con);

	irq_init();

	key_init();
	
	uart_init();

	puts("test started...\n");
	
	while(1)
	{
		puts("loop...\n");
		write32(0, &gpio->j2.dat);
		delay(0x100000);
		write32(0xf, &gpio->j2.dat);
		delay(0x100000);
	}
}



